package com.luhuiguo.cms.server.service;

import java.util.List;

import com.luhuiguo.cms.server.entity.Article;

public interface ArticleService {

    List<Article> findArticles();

    Article getArticle(Long id);

    List<Article> findArticlesByChannel(Long channel, int... rowStartIdxAndCount);

    int getCountByChannel(Long channel);

    void saveArticle(Article article);

    Article updateArticle(Article article);

    void deleteArticle(Long id);

    void deleteArticleByChannel(Long channel);
    
}
